// ActionScript file
// PREDAVAC
private function onLogInPredavac(e:Event):void{
	panels.push(creator.createPanel("Glavni Panel", 0, 200, 300, screen.width-202, screen.height-380, true, false, "Panel"));
	panels.push(creator.createPanel("AKTIVNI KURSEVI", 0, 300, 250, 0, 0, true, false, "Kursevi"));		 			
	removeChild(panels[0]);
	showPredavacPanels();
	panels[1].canClose(false);
	panels[2].canClose(false);
}

private function showPredavacPanels():void {
	addChild(googleInput);
	addChild(googleImage);
	addChild(wikipediaImage);
	addChild(wikipediaInput);
	addChild(rapidshareImage);
	addChild(rapidshareInput);
	for(var i:Number=1; i<panels.length; i++){
		addChild(panels[i]);
		panels[i].backButton.addEventListener(MouseEvent.CLICK, taskbarButtonClicked);				
	 }
	 courses = new Courses(panels[2]);
	 glavniPanel = new GlavniPanel(panels[1]);
}